🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / connections / src / jvmMain / kotlin / org / meshtastic / feature / connections / domain / usecase / JvmGetDiscoveredDevicesUseCase.kt
Displaying Raw • Download
feature/connections/src/jvmMain/kotlin/org/meshtastic/feature/connections/domain/usecase/JvmGetDiscoveredDevicesUseCase.kt 74dfd43ec2c13af9feb9b6c5fccf55977d83adb1 (74dfd43e) Text, 2.09 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.connections.domain.usecase
Tff7b72import T7ee787org.koin.core.annotation.Single
Tff7b72import T7ee787org.meshtastic.core.common.database.DatabaseManager
Tff7b72import T7ee787org.meshtastic.core.datastore.RecentAddressesDataSource
Tff7b72import T7ee787org.meshtastic.core.repository.NodeRepository
Tff7b72import T7ee787org.meshtastic.feature.connections.model.GetDiscoveredDevicesUseCase
T8b949e/**
* JVM/Desktop binding for [org.meshtastic.feature.connections.model.GetDiscoveredDevicesUseCase].
*
* The common use-case body lives in [CommonGetDiscoveredDevicesUseCase] (un-annotated, so it does not collide with the
* Android impl). This thin subclass registers it with Koin only for JVM/Desktop targets, where [JvmUsbScanner] supplies
* the USB data source.
*
* The explicit `binds` is required because Koin annotations only infer interface bindings from directly-implemented
* interfaces — the [GetDiscoveredDevicesUseCase] interface is implemented on the parent
* [CommonGetDiscoveredDevicesUseCase], which the annotation processor does not walk.
*/
Tf0883e@SingleTb4b4b4(Te6edf3binds Tff7b72= Tff7b72[Te6edf3GetDiscoveredDevicesUseCaseTff7b72::Te6edf3classTff7b72]Tb4b4b4)
Tff7b72class T56d364JvmGetDiscoveredDevicesUseCaseTb4b4b4(
Te6edf3recentAddressesDataSourceTb4b4b4: Te6edf3RecentAddressesDataSourceTb4b4b4,
Te6edf3nodeRepositoryTb4b4b4: Te6edf3NodeRepositoryTb4b4b4,
Te6edf3databaseManagerTb4b4b4: Te6edf3DatabaseManagerTb4b4b4,
Te6edf3usbScannerTb4b4b4: Te6edf3UsbScanner? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4) Tb4b4b4: Te6edf3CommonGetDiscoveredDevicesUseCaseTb4b4b4(Te6edf3recentAddressesDataSourceTb4b4b4, Te6edf3nodeRepositoryTb4b4b4, Te6edf3databaseManagerTb4b4b4, Te6edf3usbScannerTb4b4b4)
Served by rngit 1.5.4 - Generated in 0.04s